function openTabs(text, url, iconCls) {
    var $tabs = $("#tabs");
    if ($tabs.tabs("exists", text)) {
        $tabs.tabs('select', text);
        handler($tabs, url);
    } else {
        $tabs.tabs('add', {
            title: text,
            closable: true,
            content: '<iframe src="' + url + '" id = "iframepage" frameborder="0" style="width:100%;height:99.49%;" ></iframe> ',
            iconCls: iconCls,
            tools: [{
                iconCls: 'icon-mini-refresh',
                handler: function () {
                    handler($tabs, url);
                }
            }]
        });
    }
}

function handler(dom, url) {
    var tab = dom.tabs('getSelected');  // 获取选择的面板
    dom.tabs("update", {
        tab: tab,
        options: {
            content: '<iframe src="' + url + '" id = "iframepage" frameborder="0" style="width:100%;height:99.49%;" ></iframe> '
        }
    });
}